package com.csw.shoppingPlatform.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Id;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author 1
 */
@Accessors(chain = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderItem implements Serializable {
	@Id
	private String id;
	private String productId;
	private String count;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createDate;
	private String orderId;
	private String userId;

}
